package com.shujia.day05;

public class Demo06MoreFormatTest {
    public static void main(String[] args) {
        AnimalT cat = new CatT();
        CatT cat2 = (CatT) cat;
//        DogT dog1 = (DogT) cat;  // 对象本身为猫


    }
}

class AnimalT{

}

class CatT extends AnimalT{

}

class DogT extends AnimalT{

}